package com.tcoiss.log.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tcoiss.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 方案执行日志对象 scheme_execute_log
 * 
 * @author zw
 * @date 2021-05-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("work_log")
public class WorkLog implements Serializable {

private static final long serialVersionUID=1L;


    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 作业名称 */
    @Excel(name = "作业名称")
        private String workName;

    /** 执行编码 */
    @Excel(name = "执行编码")
    private String executeNumber;

    /** 作业类型 */
    @Excel(name = "作业类型")
    private Integer workType;

    /** 作业状态 */
    @Excel(name = "作业状态")
    private Integer workStatus;


    /** 异常信息 */
    @Excel(name = "异常信息")
    private String errorMsg;

    /** 日志时间 */
    @Excel(name = "日志时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date logTime;


    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
